Micron Document
Deavmi's coding shack


Commit c177a9571cf602611ed9db8d703aba641d69521a


Parents : 1866a1e
Author : Tristan Brice Velloza Kildaire <deavmi@redxen.eu>
Date : 2026-05-04T19:43:14+02:00

styuff

Changes

1 files changed, 7 insertions(+), 2 deletions(-)


Diff

diff --git a/manager_test.go b/manager_test.go
index fb82a24..f033089 100644
--- a/manager_test.go
+++ b/manager_test.go
@@ -12,6 +12,7 @@ func Test_deps(t *testing.T) {
// and load it
a := New("a")
a.command = "/bin/yes"
+ a.args = []string{"google.com", "-c", "10"}
a.AddDep("b")
m.Load(a)
@@ -19,17 +20,21 @@ func Test_deps(t *testing.T) {
// and load it
b := New("b")
b.command = "/bin/yes"
+ b.args = []string{"yahoo.com", "-c", "9"}
b.AddDep("c")
m.Load(b)
// create dependency `c` and load it
c := New("c")
- c.command = "/bin/yes"
+ c.command = "/bin/ping"
+ c.args = []string{"bing.com", "-c", "4"}
m.Load(c)
// m.canLaunch()
m.Start("a")
- time.Sleep(time.Second * 10)
+ for {
+ time.Sleep(time.Second * 10)
+ }
}

Served by rngit 1.5.0 - Generated in 0.05s